package com.xiangyang.pos.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/12/1 0001.
 *
 * 订单出库数据源
 *
 * @author YeDalin
 *
 */

public class GetOrderDataBean {


    private int status;
    private GetOrder data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public GetOrder getMsg() {
        return data;
    }

    public void setMsg(GetOrder msg) {
        this.data = msg;
    }

    public class GetOrder{

        private String ordercode;
        private String payway;
        private String status;
        private double free;
        private String addtime;
        private List<ShopData> shop;


        public String getOrdercode() {
            return ordercode;
        }

        public void setOrdercode(String ordercode) {
            this.ordercode = ordercode;
        }

        public String getPayway() {
            return payway;
        }

        public void setPayway(String payway) {
            this.payway = payway;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public double getFree() {
            return free;
        }

        public void setFree(double free) {
            this.free = free;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public List<ShopData> getContent() {
            return shop;
        }

        public void setContent(List<ShopData> content) {
            this.shop = content;
        }
    }

    public class ShopData{
        private int id;
        private String address;
        private String phone;
        private String title;
        List<GetOrderData> shopgoods;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<GetOrderData> getShopgoods() {
            return shopgoods;
        }

        public void setShopgoods(List<GetOrderData> shopgoods) {
            this.shopgoods = shopgoods;
        }
    }

    public class GetOrderData{

        private String code;
        private String title;
        private double price;
        private int shopid;
        private int num;
        private String flag;//是否特价
        private String measurement;//规格修饰数量
        private String unit;//规格单位

        private String scanCode="";

        public String getScanCode() {

            if(scanCode==null){
                return "";
            }
            return scanCode;
        }

        public void setScanCode(String scanCode) {
            this.scanCode = scanCode;
        }

        private boolean isOK=false;//判断条码是否验证成功

        public boolean isOK() {
            return isOK;
        }

        public void setOK(boolean OK) {
            isOK = OK;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getShopid() {
            return shopid;
        }

        public void setShopid(int shopid) {
            this.shopid = shopid;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public String getMeasurement() {
            return measurement;
        }

        public void setMeasurement(String measurement) {
            this.measurement = measurement;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }
    }
}
